<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>index</title>
</head>
<body>
    <h3>欢迎来到Code Shop</h3>

    <a th:if="${session.loginUser == null}" href="http://login.codeshop.com:9000/view/login?from=http://www.codeshop.com:9010/view/index">登录!</a>
    <p th:unless="${session.loginUser == null}">
        <span style="color:deepskyblue" th:text="${session.loginUser.username}"></span>已登录。
        <a href="http://login.codeshop.com:9000/logout?from=http://www.codeshop.com:9010/view/index">安全退出</a>
    </p>


</body>
</html>